import request from "@/utils/request";

//获取
export function getAttrList({ category1Id, category2Id, category3Id }) {
  return request({
    method: "get",
    url: `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`
  });
}

//新增
export function addNewAttr(data) {
  return request({
    method: "post",
    url: "/admin/product/saveAttrInfo",
    data
  });
}

//删除单项
export function dleAttr(attrId) {
  return request({
    method: "delete",
    url: `/admin/product/deleteAttr/${attrId}`
  });
}

